package com.xunfang.service;

import com.xunfang.bean.Owner;
import com.xunfang.bean.dto.BuildQueryDTO;
import com.xunfang.bean.dto.OwnerQueryDTO;
import com.xunfang.bean.vo.PageVo;
import com.xunfang.common.Result;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2023 -11-06
 * @desc
 */
public interface IOwnerService {

    PageVo findOwners(Integer currentPage, Integer pageSize, OwnerQueryDTO ownerQueryDTO);

    Owner findOwnerById(Integer id);

    Result addOrUpdateOwner(Owner owner);
    boolean addOwner(Owner owner);

    boolean updateOwnerById(Owner owner);

    List<Owner> findOwnersAll();

    boolean findDeleteById(Integer id);
}
